package controller;

import model.Users;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * Created by Hasee on 2018/12/2
 */
public class TestController extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        String idusers = req.getParameter("idusers");
        String password = req.getParameter("password");
        //Users users = new Users();
        //users.setIdusers(Integer.getInteger(idusers));
        //users.setPassword(password);
        resp.setContentType("text/html");
        resp.getWriter().append("seccess");
    }

    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        super.doGet(req, resp);
    }
}
